package com.mbl.base.modular.mall.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.mbl.base.core.common.entity.BaseEntity;
import com.mbl.base.modular.config.entity.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 类目表
 * </p>
 *
 * @author lwj
 * @since 2020-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mbl_mall_category")
@ApiModel(value="Category对象", description="类目表")
public class Category extends BaseEntity<Category> {
    @ApiModelProperty(value = "类目名称")
    private String name;

    @ApiModelProperty(value = "类目关键字，以JSON数组格式")
    private String keywords;

    @ApiModelProperty(value = "父类目ID")
    private Integer pid;

    @ApiModelProperty(value = "类目图标")
    private String iconUrl;

    @ApiModelProperty(value = "类目图片")
    private String picUrl;

    private String level;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;

    @TableField(exist = false)
    @ApiModelProperty(value = "子节点列表")
    private List<Category> children;
}
